package com.sgcc.pda;

/**
 * @author superFan
 * date: 2019/7/25/025 18:34
 * Copyright (c) 2019 hezhongweiqi.Co.Ltd. All rights reserved.
 * description: conmmonResults 的返回对应字段
 */
public enum CommonResultsConstant {

    ERROR_SERVICE_EXCEPTION("-7", "AIDL服务未连接"),
    ERROR_DB_INVOKE_EXCEPTION("-6", "数据库执行异常"),
    ERROR_REMOTE_EXCEPTION("-5", "远程异常"),
    ERROR_PARAMETERS_EXCEPTION("-4", "参数解析异常"),
    ERROR_METHOD_INVOKE_EXCEPTION("-3", "方法执行异常"),
    ERROR_CLASS_NOT_FOUND("-2", "找不到类"),
    ERROR_CUSTOM("-1", "失败"),//失败，msg可以自定义

    SUCCESS("1", "success"),//成功
    ;

    private String code;
    private String msg;

    CommonResultsConstant(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
